package com.company.core.exception;

import lombok.Data;

/**
 * @author lcl
 * @Title: BizException
 * @ProjectName smart-planet
 * @Description: 业务异常
 * @date 2019/1/15下午3:21
 */
@Data
public class BizException extends RuntimeException{
    private static final long serialVersionUID = -298311232780808293L;

    private int code = 400;

    private String message;

    public BizException() {
        super();
    }

    public BizException(int code, String message) {
        this.code = code;
        this.message = message;
    }
    public BizException(String message) {
        this.code = code;
        this.message = message;
    }
    public BizException(int code) {
        this.code = code;
    }
}
